export default function reducer(
    state = {
        shopData:[]
    },action) {
        switch (action.type) {
            case "initShop":
                return {
                    ...state,
                    shopData:action.payload.rows
                }
                break;
            default:
                return state
                break;
        }
}